package com.three.productList.feign;

import com.three.core.entity.User;
import com.three.productList.vo.SearchForm;
import com.three.core.vo.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author ：li
 * @date ：Created in 2025/3/11 011 16:20
 * @description：
 * @modified By：
 * @version:
 */
@Component
public class UserFallbackFactory implements FallbackFactory<UserFeign> {
    @Override
    public UserFeign create(Throwable cause) {
        return new UserFeign() {

            @Override
            public R<User> selectAll() {
                return new R<User>(500,"服务器错误",null);
            }

        };
    }
}
